package com.qdxwx.models.enums;

/**
 * @description 账户历史类型
 * @author developer
 */
public enum AccountHistoryType {

    SALES, // 消费，出账
    REFUND, // 退款
    CASHLOAD,//现金充值
    VMLOAD,//充值卡充值
    ADMINLOAD,//后台充值
    ADMINREFUND,//后台扣款
    DRAWMONEY,//提现
    BACKMONEY;//返现

    public boolean isSales() {
        return this == AccountHistoryType.SALES;
    }

    public boolean isRefund() {
        return this == AccountHistoryType.REFUND;
    }

    public boolean isLoad() {
        switch (this) {
        case CASHLOAD:
            return true;
        case VMLOAD:
            return true;
        default:
            return false;
        }
    }

}
